package entity;

import java.io.Serializable;

/**
 * Books
 *
 * @author lenovo
 * @since 2023/8/25
 */
public class Books implements Serializable {
    private static final long serialVersionUID = 42L;

    //id
    private int id;

    //书名
    private String name;

    //作者
    private String author;

    //图书馆Id
    private int library_id;

    //书籍种类Id
    private int sort_id;

    //位置
    private String position;

    //状态
    private int status;

    //描述
    private String description;


    public Books(String name, String author, int library_id, int sort_id, String position, int status, String description) {
        this.name = name;
        this.author = author;
        this.library_id = library_id;
        this.sort_id = sort_id;
        this.position = position;
        this.status = status;
        this.description = description;
    }

    public Books(int id, String name, String author, int library_id, int sort_id, String position, int status, String description) {
        this.id = id;
        this.name = name;
        this.author = author;
        this.library_id = library_id;
        this.sort_id = sort_id;
        this.position = position;
        this.status = status;
        this.description = description;
    }

    public Books() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getLibrary_id() {
        return library_id;
    }

    public void setLibrary_id(int library_id) {
        this.library_id = library_id;
    }

    public int getSort_id() {
        return sort_id;
    }

    public void setSort_id(int sort_id) {
        this.sort_id = sort_id;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
